package com.x.epspace.common;

import javax.annotation.Resource;

import com.x.epspace.entity.BindEnt;
import com.x.epspace.entity.RegUser;

public class MyThread implements Runnable {
	
	private MessagesOper messageOper;

	private RegUser regUser;

	private BindEnt bindEnt;

	public RegUser getRegUser() {
		return regUser;
	}

	public void setRegUser(RegUser regUser) {
		this.regUser = regUser;
	}

	public BindEnt getBindEnt() {
		return bindEnt;
	}

	public void setBindEnt(BindEnt bindEnt) {
		this.bindEnt = bindEnt;
	}

	

	public MessagesOper getMessageOper() {
		return messageOper;
	}

	public void setMessageOper(MessagesOper messageOper) {
		this.messageOper = messageOper;
	}

	public void run() {
		long lTime = messageOper.getMaxScnTime(bindEnt);
		messageOper.saveEntInfor(regUser, bindEnt, lTime);
	}
}
